/*
 * @Author: your name
 * @Date: 2021-04-18 20:16:03
 * @LastEditTime: 2021-04-18 20:17:45
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \w1811-a-wang-xiaotong\day1\myapp\vue.config.js
 */
let list = require("./mock/index.js");
let BodyParser = require("body-parser");
module.exports = {
    devServer:{
        before(app){
            app.use(BodyParser.json());
            app.post("/api/list",(req,res)=>{
                res.send({
                    code:0,
                    list:list,
                })
            })
        }
    }
}